<?php
class Application_Model_Schema_GameProperty {
	protected $_id;
	protected $_user;
	protected $_modified;
	protected $_maps_size_x;
	protected $_maps_size_y;

	public function __set($name, $value) {
		$method = 'set' . $name;
		if(!method_exists($this, $method)) {
			throw new Exception('Set Invalid Game Property Property: ' . $name);
		}
		$this->$method($value);
	}

	public function __get($name) {
		$method = 'get' . $name;
		if(!method_exists($this, $method)) {
			throw new Exception('Get Invalid Game Property Property: ' . $name);
		}
		return $this->$method();
	}

	public function setId($id) {
		$this->_id = (int) $id;
		return $this;
	}

	public function getId() {
		return $this->_id;
	}

	public function setUser($user) {
		$this->_user = $user;
		return $this;
	}

	public function getUser() {
		return $this->_user;
	}
	
	public function setModified($modified) {
		$this->_modified = (int) $modified;
		return $this;
	}

	public function getModified() {
		return $this->_modified;
	}	
	
	public function setMapsSizeX($x) {
		$this->_maps_size_x = (int) $x;
		return $this;
	}

	public function getMapsSizeX() {
		return $this->_maps_size_x;
	}	
	
	public function setMapsSizeY($y) {
		$this->_maps_size_y = (int) $y;
		return $this;
	}

	public function getMapsSizeY() {
		return $this->_maps_size_y;
	}		
}
?>